package com.mobartisan.vehiclenetstore.getui_push;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.mobartisan.vehiclenetstore.ui.activity.MainActivity;


/**
 * Created by liangzili on 15/8/3.
 */
public class InformationReceiver extends BroadcastReceiver {
    private static final String TAG = InformationReceiver.class.getSimpleName();
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle = intent.getExtras();
        Intent mainIntent = new Intent(context, MainActivity.class);
        mainIntent.putExtras(bundle);
        mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(mainIntent);
    }
}
